package com.moviesearch.elastic7.service;

import com.moviesearch.elastic7.model.Filmresources;

import java.io.IOException;
import java.util.List;

public interface ElasticService {
    String mysqlToEs(String index) throws IOException;

    String insertEs(Filmresources filmresources,String index) throws IOException;

    String updateEs(Filmresources filmresources,String index,String id) throws IOException;

    Filmresources getEs(String index, String esid) throws IOException;

    String deleteEs(String index,String esid) throws  IOException;

    List<Filmresources> getByCondition(String index, String keyword , Integer pageIndex, Integer pageCount, String... fields) throws IOException;

    List<Filmresources> getByConditionHigh(String index,String keyword ,Integer pageIndex,Integer pageCount,String... fields) throws IOException;
}
